package com.efast.dmom.aps.datahandlers;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.efast.dmom.aps.bean.Bom;
import com.efast.dmom.aps.bean.BomItem;
import com.efast.dmom.aps.bean.PlanOrderPartAnalysisResult;
import com.efast.dmom.aps.bean.PlanOrderPartAnalysisResultItem;
import com.efast.dmom.aps.dao.HomogeneityAnalysisDao;

@Component
public class HomogeneityAnalysisDataHandler {

	@Autowired
	private HomogeneityAnalysisDao homogeneityAnalysisDao;
	
	public Map<String, Integer> selectMaterialInventory() {
		return homogeneityAnalysisDao.selectMaterialInventory();
	}

	public List<Bom> selectAllBomData() {
		return homogeneityAnalysisDao.selectAllBomData();
	}

	public List<BomItem> selectAllBomItemData() {
		return homogeneityAnalysisDao.selectAllBomItemData();
	}

	public void insertHomogeneityAnalysisResult(PlanOrderPartAnalysisResult homogeneityAnalysisResult) {
		homogeneityAnalysisDao.insertHomogeneityAnalysisResult(homogeneityAnalysisResult);
	}

	public void insertResultItemList(List<PlanOrderPartAnalysisResultItem> recursionResultItemList) {
		homogeneityAnalysisDao.insertResultItemList(recursionResultItemList);
	}

}
